package top.broncho.lottery.db

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

const val TABLE_NAME = "lottery"

@Entity(tableName = TABLE_NAME, indices = [Index("lotteryNo", unique = true)])
class LotteryEntity(
    @PrimaryKey(autoGenerate = true)
    var _id: Long = System.currentTimeMillis(),
    val path: String,
    val lotteryNo: String,
    val lotteryDate: String,
    val sellDate: String,
    val cost: String,
    val list: List<List<String>>
)